{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
<div class="layui-form p-4">
	<h3 class="pb-3">用户信息</h3>
	<table class="layui-table layui-table-form">

		{eq name="$user.user_type" value="1" }
		<tr>
			<td class="layui-td-gray">用户头像</td>
			<td>
				<a href="{$user.avatar}"><img style="width: 60px;height: 60px" src="{$user.avatar}" alt=""></a>
			</td>
			<td class="layui-td-gray">用户昵称</td>
			<td>
				{$user.nickname}
			</td>
		</tr>
		{/eq}
		{eq name="$user.user_type" value="2" }
		<tr>
			<td class="layui-td-gray">企业信息</td>
			<td>{$user.company}</td>
			<td class="layui-td-gray">企业logo</td>
			<td>
				<a href="{$user.company_logo}"><img style="width: 60px;height: 60px" src="{$user.company_logo}" alt=""></a>
			</td>
		</tr>
		<tr>
			<td class="layui-td-gray">法人姓名</td>
			<td>{$user.fr_name}</td>
			<td class="layui-td-gray">法人手机号</td>
			<td>{$user.fr_mobile}</td>
		</tr>
		{/eq}
		<tr>
			<td class="layui-td-gray">手机号</td>
			<td>
				{$user.mobile}
			</td>
			<td class="layui-td-gray">密码</td>
			<td>
				{$user.password}
			</td>
		</tr>
		<tr>
			<td class="layui-td-gray">注册时间</td>
			<td>
				{$user.register_time | date='Y-m-d H:i:s'}
			</td>
		</tr>
		<tr>
			<td class="layui-td-gray">是否开通会员</td>
			<td>
				{$user.member}
			</td>
		</tr>
	</table>
</div>
{/block}
<!-- /主体 -->